package classes.tfo
{
	[RemoteClass(alias="com.sylli.oeuf.server.object.transferable.StatTO")]
	[Bindable]
	public class StatTO extends BasedTO
	{
		public var statStr:int;
		public var statCon:int;
		public var statVit:int;
		public var statWis:int;
		public var statInt:int;
		public var statChm:int;
		public var statLuk:int;
		public var statDex:int;
		public var statAgi:int;
		public var statHst:int;

		public function StatTO()
		{
		}
		
		public function clone():StatTO {
			var ret:StatTO = new StatTO();
			return sum(ret);
		}
		
		public function sum(item:StatTO):StatTO {
			var ret:StatTO = new StatTO();
			ret.statStr = this.statStr + item.statStr;
			ret.statCon = this.statCon + item.statCon;
			ret.statVit = this.statVit + item.statVit;
			ret.statWis = this.statWis + item.statWis;
			ret.statInt = this.statInt + item.statInt;
			ret.statChm = this.statChm + item.statChm;
			ret.statLuk = this.statLuk + item.statLuk;
			ret.statDex = this.statDex + item.statDex;
			ret.statAgi = this.statAgi + item.statAgi;
			ret.statHst = this.statHst + item.statHst;
			return ret;
		}

	}
}